package cn.ywsj.ywsjmidtier.service;

import cn.ywsj.ywsjmidtier.common.Connect;
import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Api(tags = "我的供应商")
@FeignClient(url = Connect.XSX_URL,name = "xsx")
public interface WechatInviteBuyerFeign {

    /**
     * 邀请码
     * @param jsonObject
     * @return
     */
    @ApiOperation("邀请码")
    @PostMapping("/wechat/member/invitebuyermgr/setinvitecode")
    String setinvitecode(@RequestParam("jsonObject")JSONObject jsonObject);

    /**
     * 我的供应商_详情
     * @param jsonObject
     * @return
     */
    @ApiOperation("我的供应商_详情")
    @PostMapping("/wechat/member/invitebuyermgr/getcreditaccountbycustid")
    String getCreditAccountByCustId(@RequestParam("jsonObject")JSONObject jsonObject);

    /**
     * 我的供应商_邀请管理
     * @param start
     * @param pageSize
     * @return
     */
    @ApiOperation("我的供应商_邀请管理")
    @PostMapping("/wechat/member/invitebuyermgr/ajaxinvitelist")
    String ajaxInviteList(@RequestParam("jsonObject")JSONObject jsonObject,@RequestParam("start")Integer start, @RequestParam("pageSize")Integer pageSize);
    @PostMapping("/wechat/member/invitebuyermgr/getinvitecodelist")
    String getinvitecodelist(@RequestParam("jsonObject")JSONObject jsonObject);
}